package admin

import (
	database "hft/Database"
)

type CitySetting struct {
	database.Base
	LouPanClueScore uint    `json:"louPanClueScore" gorm:"comment:楼盘线索领取所需金币"`
	CommonClueScore uint    `json:"commonClueScore" gorm:"comment:公共线索领取所需金币"`
	PerMonthScore   uint    `json:"perMonthScore" gorm:"comment:每月领取的金币"`
	LimitScore      uint    `json:"limitScore" gorm:"comment:每个经纪人限制的金币上限"`
	Residential     float64 `json:"residential" gorm:"comment:住宅系数"`
	Commercial      float64 `json:"commercial" gorm:"comment:商业系数"`
	GongJiJIn       float64 `json:"gongjijin" gorm:"column:gong_ji_jin;comment:公积金常用贷款利率"`
	Region          int     `json:"region" gorm:"index;unique"`
	LevelA          float32 `json:"levelA"`
	LevelB          float32 `json:"levelB"`
	LevelC          float32 `json:"levelC"`
	LevelD          float32 `json:"levelD"`
	FreeStartTime   int     `json:"free_start_time" gorm:"default:22"`
	FreeEndTime     int     `json:"free_end_time" gorm:"default:8"`
	// LevelE          float32 `json:"levelE"`
	// LevelF          float32 `json:"levelF"`
}

func (CitySetting) TableName() string {
	return database.TableNameFormat("city_setting")
}
